package nickname;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;

public class Mobile extends HttpServlet {

	private static final long serialVersionUID = 1L;
	private final Logger logger = Logger.getLogger(Mobile.class);

	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		logger.debug(Utils.request2NiceString(req));
		
		PrintWriter writer = resp.getWriter();
		resp.setContentType("text/html");
		writer.write(GGServerIpProvider.getGGServerIp());
		writer.close();
	}
}
